BX.namespace("BX.IBlock");function JCIBlockProperty(e){if(!e){return}this.intERROR=0;this.PREFIX=e.PREFIX;this.PREFIX_TR=this.PREFIX+"ROW_";this.FORM_ID=e.FORM_ID;this.TABLE_PROP_ID=e.TABLE_PROP_ID;this.PROP_COUNT_ID=e.PROP_COUNT_ID;this.IBLOCK_ID=e.IBLOCK_ID;this.LANG=e.LANG;this.TITLE=e.TITLE;this.CELLS=[];this.CELL_IND=-1;this.CELL_CENT=[];this.OBJNAME=e.OBJ;BX.ready(BX.delegate(this.Init,this))}JCIBlockProperty.prototype.Init=function(){var e=null,t=0;this.FORM_DATA=BX(this.FORM_ID);if(!this.FORM_DATA){this.intERROR=-1;return}this.PROP_TBL=BX(this.TABLE_PROP_ID);if(!this.PROP_TBL){this.intERROR=-1;return}this.PROP_COUNT=BX(this.PROP_COUNT_ID);if(!this.PROP_COUNT){this.intERROR=-1;return}e=BX.findChildren(this.PROP_TBL,{tag:"input",attribute:{type:"button"}},true);if(!!e){for(t=0;t<e.length;t++){BX.bind(e[t],"click",BX.proxy(this.ShowPropertyDialog,this))}}BX.addCustomEvent(this.FORM_DATA,"onAutoSaveRestore",BX.delegate(this.onAutoSaveRestore,this))};JCIBlockProperty.prototype.GetPropInfo=function(e){if(0>this.intERROR)return{};e=this.PREFIX+e;return{PROPERTY_TYPE:this.FORM_DATA[e+"_PROPERTY_TYPE"].value,NAME:this.FORM_DATA[e+"_NAME"].value,ACTIVE:this.FORM_DATA[e+"_ACTIVE_Y"].checked?this.FORM_DATA[e+"_ACTIVE_Y"].value:this.FORM_DATA[e+"_ACTIVE_N"].value,MULTIPLE:this.FORM_DATA[e+"_MULTIPLE_Y"].checked?this.FORM_DATA[e+"_MULTIPLE_Y"].value:this.FORM_DATA[e+"_MULTIPLE_N"].value,IS_REQUIRED:this.FORM_DATA[e+"_IS_REQUIRED_Y"].checked?this.FORM_DATA[e+"_IS_REQUIRED_Y"].value:this.FORM_DATA[e+"_IS_REQUIRED_N"].value,SORT:this.FORM_DATA[e+"_SORT"].value,CODE:this.FORM_DATA[e+"_CODE"].value,PROPINFO:this.FORM_DATA[e+"_PROPINFO"].value}};JCIBlockProperty.prototype.SetPropInfo=function(e,t,i){var r=0,n=null,s=null,o=null;if(0>this.intERROR){return}if(!i){return}if(BX.bitrix_sessid()!==i){return}e=this.PREFIX+e;this.FORM_DATA[e+"_NAME"].value=t.NAME;this.FORM_DATA[e+"_SORT"].value=t.SORT;this.FORM_DATA[e+"_CODE"].value=t.CODE;n=BX(e+"_ACTIVE_Y");n.checked="Y"===t.ACTIVE;s=BX(e+"_MULTIPLE_Y");s.checked="Y"===t.MULTIPLE;o=BX(e+"_IS_REQUIRED_Y");o.checked="Y"===t.IS_REQUIRED;this.FORM_DATA[e+"_PROPINFO"].value=t.PROPINFO;for(r=0;r<this.FORM_DATA[e+"_PROPERTY_TYPE"].length;r++){if(t.PROPERTY_TYPE===this.FORM_DATA[e+"_PROPERTY_TYPE"].options[r].value){this.FORM_DATA[e+"_PROPERTY_TYPE"].options[r].selected=true}}BX.fireEvent(this.FORM_DATA[e+"_NAME"],"change")};JCIBlockProperty.prototype.GetProperty=function(e){if(0>this.intERROR)return"";if(!e||!this[e])return"";return this[e]};JCIBlockProperty.prototype.SetProperty=function(e,t){if(0>this.intERROR){return}if(e){this[e]=t}};JCIBlockProperty.prototype.ShowPropertyDialog=function(){if(0>this.intERROR){return}var e=BX.proxy_context,t="",i={};if(!!e&&e.hasAttribute("data-propid")){t=e.getAttribute("data-propid");i={PARAMS:{PREFIX:this.PREFIX,ID:t,IBLOCK_ID:this.IBLOCK_ID,TITLE:this.TITLE,RECEIVER:this.OBJNAME},PROP:this.GetPropInfo(t),sessid:BX.bitrix_sessid()};new BX.CAdminDialog({title:this.TITLE,content_url:"/bitrix/admin/iblock_edit_property.php?lang="+this.LANG+"&propedit="+t+"&bxpublic=Y&receiver="+this.OBJNAME,content_post:i,draggable:true,resizable:true,buttons:[BX.CAdminDialog.btnSave,BX.CAdminDialog.btnCancel]}).Show()}};JCIBlockProperty.prototype.SetCells=function(e,t,i){var r=0;if(0>this.intERROR){return}if(e){this.CELLS=BX.clone(e,true)}for(r=0;r<this.CELLS.length;r++){this.CELLS[r]=this.CELLS[r].replace(/PREFIX/gi,this.PREFIX)}if(t){this.CELL_IND=t}if(i){this.CELL_CENT=BX.clone(i,true)}};JCIBlockProperty.prototype.addPropRow=function(){if(0>this.intERROR){return}var e=0,t=parseInt(this.PROP_COUNT.value,10),i="",r=null,n=null,s="",o=null;r=this.PROP_TBL.insertRow(this.PROP_TBL.rows.length);r.id=this.PREFIX_TR+"n"+t;for(e=0;e<this.CELLS.length;e++){n=r.insertCell(-1);s=this.CELLS[e];s=s.replace(/tmp_xxx/gi,"n"+t);n.innerHTML=s}for(e=0;e<this.CELL_CENT.length;e++){i=r.cells[this.CELL_CENT[e]-1];if(!!i){BX.adjust(i,{style:{textAlign:"center",verticalAlign:"middle"}})}}i=r.cells[0];if(!!i){BX.adjust(i,{style:{verticalAlign:"middle"}})}if(r.cells[this.CELL_IND]){i=r.cells[this.CELL_IND];o=BX.findChildren(i,{tag:"input",attribute:{type:"button"}},true);if(!!o){for(e=0;e<o.length;e++){BX.bind(o[e],"click",BX.proxy(this.ShowPropertyDialog,this))}}}BX.adminFormTools.modifyFormElements(this.FORM_ID);setTimeout(function(){var e=0,t=0,i=BX.findChildren(r.parentNode,{tag:/^(input|select|textarea)$/i},true);if(i&&i.length>0){for(e=0,t=i.length;e<t;e++){if(i[e].form&&i[e].form.BXAUTOSAVE){i[e].form.BXAUTOSAVE.RegisterInput(i[e])}else{break}}}},10);this.PROP_COUNT.value=t+1};JCIBlockProperty.prototype.onAutoSaveRestore=function(e,t){while(t["IB_PROPERTY_n"+this.PROP_COUNT.value+"_NAME"]){this.addPropRow()}};function JCIBlockAccess(e,t,i,r,n,s,o,a,l){this.entity_type=e;this.iblock_id=t;this.id=i;this.arSelected=r;this.variable_name=n;this.table_id=s;this.href_id=o;this.sSelect=a;this.arHighLight=l;BX.ready(BX.delegate(this.Init,this))}JCIBlockAccess.prototype.Init=function(){BX.bind(BX(this.href_id),"click",BX.delegate(this.Add,this));var e=BX(this.variable_name+"_heading");if(e){BX.bind(e,"dblclick",BX.delegate(this.ShowInfo,this))}BX.Access.Init(this.arHighLight);BX.Access.SetSelected(this.arSelected,this.variable_name)};JCIBlockAccess.prototype.Add=function(){BX.Access.ShowForm({callback:BX.delegate(this.InsertRights,this),bind:this.variable_name})};JCIBlockAccess.prototype.InsertRights=function(e){var t=BX(this.table_id);for(var i in e){if(e.hasOwnProperty(i)){for(var r in e[i]){if(e[i].hasOwnProperty(r)){var n=t.rows.length;var s=t.insertRow(n-1);s.vAlign="top";s.insertCell(-1);s.insertCell(-1);s.cells[0].align="right";s.cells[0].style.textAlign="right";s.cells[0].style.verticalAlign="middle";s.cells[0].innerHTML=BX.Access.GetProviderName(i)+" "+BX.Text.encode(e[i][r].name)+":"+'<input type="hidden" name="'+this.variable_name+'[][RIGHT_ID]" value=""><input type="hidden" name="'+this.variable_name+'[][GROUP_CODE]" value="'+r+'">';s.cells[1].align="left";s.cells[1].innerHTML=this.sSelect+" "+'<a href="javascript:void(0);" onclick="JCIBlockAccess.DeleteRow(this, \''+r+"', '"+this.variable_name+'\')" class="access-delete"></a><span title="'+BX.message("langApplyTitle")+'" id="overwrite_'+r+'"></span>';var o=BX.findChildren(t,{class:this.variable_name+"_row_for_"+r},true);if(o)for(var a=0;a<o.length;a++)o[a].className+=" iblock-strike-out"}}}}if(parseInt(this.id)>0){BX.ajax.loadJSON("/bitrix/admin/iblock_edit.php"+"?ajax=y"+"&sessid="+BX.bitrix_sessid()+"&entity_type="+this.entity_type+"&iblock_id="+this.iblock_id+"&id="+this.id,{added:e},function(e){if(e){for(var t in e){var i=parseInt(e[t][0]);var r=parseInt(e[t][1]);var n="";if(i>0&&r>0)n=BX.message("langApply1Title");else if(i>0)n=BX.message("langApply2Title");else if(r>0)n=BX.message("langApply3Title");if(n)BX("overwrite_"+t).innerHTML='<br><input type="checkbox" name="'+this.variable_name+'[][DO_CLEAN]" value="Y" checked="checked" disabled="disabled">'+n+" ("+(i+r)+")"}}})}BX.onCustomEvent("onAdminTabsChange")};JCIBlockAccess.prototype.ShowInfo=function(){var e=this.entity_type;var t=this.iblock_id;var i=this.id;var r=new BX.CWindowButton({title:"Query",action:function(){var r=BX("prompt_user_id");BX("info_result").innerHTML="";BX.showWait();BX.ajax.loadJSON("/bitrix/admin/iblock_edit.php"+"?ajax=y"+"&sessid="+BX.bitrix_sessid()+"&entity_type="+e+"&iblock_id="+t+"&id="+i,{info:r.value},function(e){if(e){for(var t in e){BX("info_result").innerHTML+='<span style="display:inline-block;width:200px;height:15px;">'+t+"</span>"}}BX.closeWait()})}});if(null==this.iblock_info_obDialog){this.iblock_info_obDialog=new BX.CDialog({content:'<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td width="50%" align="right">User ID:</td><td width="50%" align="left"><input type="text" size="6" id="prompt_user_id" value=""></td></tr><tr><td colspan="2" id="info_result"></td></tr></table>',buttons:[r,BX.CDialog.btnCancel],width:420,height:200})}this.iblock_info_obDialog.Show();var n=BX("prompt_user_id");n.focus();n.select()};JCIBlockAccess.DeleteRow=function(e,t,i){var r=BX.findParent(e,{tag:"tr"});var n=BX.findParent(r,{tag:"table"});var s=BX.findChildren(n,{class:i+"_row_for_"+t+" iblock-strike-out"},true);if(s)for(var o=0;o<s.length;o++)s[o].className=i+"_row_for_"+t;r.parentNode.removeChild(r);BX.onCustomEvent("onAdminTabsChange");BX.Access.DeleteSelected(t,i)};BX.IBlock.Tools=function(){};BX.IBlock.Tools.addNewRow=function(e,t){var i=document.getElementById(e);var r=i.rows.length;if(t==null)t=-2;var n=i.rows[r+t].cells[0].innerHTML;var s=i.insertRow(r+t+1);var o=s.insertCell(0);var a,l,p,h;h=0;while(true){a=n.indexOf("[n",h);if(a<0)break;l=n.indexOf("]",a);if(l<0)break;p=parseInt(n.substr(a+2,l-a));n=n.substr(0,a)+"[n"+ ++p+"]"+n.substr(l+1);h=a+1}h=0;while(true){a=n.indexOf("__n",h);if(a<0)break;l=n.indexOf("_",a+2);if(l<0)break;p=parseInt(n.substr(a+3,l-a));n=n.substr(0,a)+"__n"+ ++p+"_"+n.substr(l+1);h=l+1}h=0;while(true){a=n.indexOf("__N",h);if(a<0)break;l=n.indexOf("__",a+2);if(l<0)break;p=parseInt(n.substr(a+3,l-a));n=n.substr(0,a)+"__N"+ ++p+"__"+n.substr(l+2);h=l+2}h=0;while(true){a=n.indexOf("xxn",h);if(a<0)break;l=n.indexOf("xx",a+2);if(l<0)break;p=parseInt(n.substr(a+3,l-a));n=n.substr(0,a)+"xxn"+ ++p+"xx"+n.substr(l+2);h=l+2}h=0;while(true){a=n.indexOf("%5Bn",h);if(a<0)break;l=n.indexOf("%5D",a+3);if(l<0)break;p=parseInt(n.substr(a+4,l-a));n=n.substr(0,a)+"%5Bn"+ ++p+"%5D"+n.substr(l+3);h=l+3}var d={html:n};BX.onCustomEvent(window,"onAddNewRowBeforeInner",[d]);n=d.html;o.innerHTML=n;var u=new RegExp("<"+"script"+">[^\0]*?<"+"/"+"script"+">","ig");var c=n.match(u);if(c){for(var f=0;f<c.length;f++){if(c[f]!==""){a=c[f].substring(8,c[f].length-9);jsUtils.EvalGlobal(a)}}}if(BX&&BX.adminPanel){BX.adminPanel.modifyFormElements(s);BX.onCustomEvent("onAdminTabsChange")}setTimeout(function(){var e=BX.findChildren(o,{tag:/^(input|select|textarea)$/i});if(e&&e.length>0){for(var t=0,i=e.length;t<i;t++){if(e[t].form&&e[t].form.BXAUTOSAVE)e[t].form.BXAUTOSAVE.RegisterInput(e[t]);else break}}},10)};function JCIBlockGroupField(e,t,i){this.form=e;this.groupSection=BX(t);this.ajaxURL=i}JCIBlockGroupField.prototype.reload=function(){if(!window.JCIBlockGroupFieldIsRunning){window.JCIBlockGroupFieldIsRunning=true;this.preparePost()}else{if(window.JCIBlockGroupFieldTimer)clearTimeout(window.JCIBlockGroupFieldTimer);window.JCIBlockGroupFieldTimer=setTimeout(BX.proxy(this.reload,this),500)}};JCIBlockGroupField.prototype.preparePost=function(){var e;var t=[];t[t.length]={name:"ajax_action",value:"section_property"};t[t.length]={name:"sessid",value:BX.bitrix_sessid()};this.gatherInputsValues(t,document.getElementsByName("IBLOCK_SECTION[]"));var i=BX.findChildren(this.form,{tag:"tr",class:"bx-in-group"},true);if(i){for(e=0;e<i.length;e++)this.gatherInputsValues(t,BX.findChildren(i[e],null,true))}var r=BX.findChildren(this.form,{tag:"span",class:"bx-fields-hidden"},true);if(r){for(e=0;e<r.length;e++)this.gatherInputsValues(t,BX.findChildren(r[e],null,true))}BX.ajax.post(this.ajaxURL,this.values2post(t),BX.delegate(this.postHandler,this))};JCIBlockGroupField.prototype.postHandler=function(e){var t;if(this.form){var i=BX.findChildren(this.form,{tag:"tr",class:"bx-in-group"},true);if(i){for(t=0;t<i.length;t++)this.groupSection.parentNode.removeChild(i[t])}var r=document.createElement("DIV");r.innerHTML=e;var n=BX.findChildren(r,{tag:"tr",class:"bx-in-group"},true);if(n){var s=this.groupSection.nextSibling;for(t=0;t<n.length;t++){var o=n[t];o.parentNode.removeChild(o);this.groupSection.parentNode.insertBefore(o,s)}}var a;a=BX.findChildren(this.form,{tag:"span",class:"bx-fields-hidden"},true);if(a)for(t=0;t<a.length;t++)a[t].parentNode.removeChild(a[t]);a=BX.findChildren(r,{tag:"span",class:"bx-fields-hidden"},true);if(a){for(t=0;t<a.length;t++){var l=a[t];l.parentNode.removeChild(l);this.form.appendChild(l)}}BX.onCustomEvent("onAdminTabsChange");BX.adminPanel.modifyFormElements(this.form)}window.JCIBlockGroupFieldIsRunning=false};JCIBlockGroupField.prototype.gatherInputsValues=function(e,t){if(t){for(var i=0;i<t.length;i++){var r=t[i];if(r.disabled||!r.type)continue;switch(r.type.toLowerCase()){case"text":case"textarea":case"password":case"hidden":case"select-one":e[e.length]={name:r.name,value:r.value};break;case"radio":case"checkbox":if(r.checked)e[e.length]={name:r.name,value:r.value};break;case"select-multiple":for(var n=0;n<r.options.length;n++){if(r.options[n].selected)e[e.length]={name:r.name,value:r.options[n].value}}break;default:break}}}};JCIBlockGroupField.prototype.values2post=function(e){var t=[];var i=t;var r=0;while(r<e.length){var n=e[r].name.indexOf("[");if(n==-1){i[e[r].name]=e[r].value;i=t;r++}else{var s=e[r].name.substring(0,n);var o=e[r].name.substring(n+1);if(!i[s])i[s]=[];var a=o.indexOf("]");if(a==-1){i=t;r++}else if(a==0){i=i[s];e[r].name=""+i.length}else{i=i[s];e[r].name=o.substring(0,a)+o.substring(a+1)}}}return t};window.ipropTemplates=[];function JCInheritedPropertiesTemplates(e,t){this.form=e;this.ajaxURL=t}JCInheritedPropertiesTemplates.prototype.updateInheritedPropertiesTemplates=function(e){for(var t=0;t<ipropTemplates.length;t++){var i=BX(ipropTemplates[t].INPUT_ID);if(i&&i.type.toLowerCase()=="textarea"){if(i.scrollHeight>i.clientHeight){var r=i.offsetHeight-i.clientHeight;var n=i.scrollHeight+r;i.style.height=n+"px"}var s=BX("ck_"+ipropTemplates[t].INPUT_ID);if(s){if(s.checked){i.readOnly=false;BX("mnu_"+ipropTemplates[t].INPUT_ID).disabled=false}else{i.readOnly=true;BX("mnu_"+ipropTemplates[t].INPUT_ID).disabled=true}}}}if(e)setTimeout(function(){InheritedPropertiesTemplates.updateInheritedPropertiesValues(true)},100)};JCInheritedPropertiesTemplates.prototype.updateInheritedPropertiesValues=function(startup,force){var i,space,input,values,f,k,obj_ta,clearValues;if(startup){for(i=0;i<ipropTemplates.length;i++){space=BX("space_"+ipropTemplates[i].ID);if(space)ipropTemplates[i].SPACE=space.value}}for(i=0;i<ipropTemplates.length;i++){input=BX(ipropTemplates[i].INPUT_ID);if(!input)return;space=BX("space_"+ipropTemplates[i].ID);if(space)this.asciiOnly(space);if(force||ipropTemplates[i].TEMPLATE!=BX(ipropTemplates[i].INPUT_ID).value||space&&ipropTemplates[i].SPACE!=space.value){values=[];f=new JCIBlockGroupField(BX(this.form));f.gatherInputsValues(values,BX.findChildren(BX(this.form),null,true));for(k=0;k<ipropTemplates.length;k++){obj_ta=BX(ipropTemplates[k].INPUT_ID);if(obj_ta&&obj_ta.readOnly){values[values.length]={name:obj_ta.name,value:obj_ta.value}}}BX.ajax.post(this.ajaxURL,f.values2post(values),function(data){var DATA=[],data_test,j,k,div;if(BX.type.isNotEmptyString(data)){data_test=BX.parseJSON(data);if(data_test){eval("DATA = "+data)}}for(j=0;j<DATA.length;j++){if(DATA[j].htmlId){if(BX(DATA[j].htmlId))BX(DATA[j].htmlId).innerHTML=DATA[j].value;else if(typeof DATA[j].hiddenId!="undefined"&&BX(DATA[j].hiddenId))BX(DATA[j].hiddenId).value=DATA[j].hiddenValue}else{for(k=0;k<ipropTemplates.length;k++){if(ipropTemplates[k].ID==DATA[j].id){div=BX(ipropTemplates[k].RESULT_ID);if(div)div.innerHTML=DATA[j].value;break}}}}});if(!startup){clearValues=BX("IPROPERTY_CLEAR_VALUES");if(clearValues){clearValues.value="Y";if(clearValues.type.toLowerCase()=="checkbox")clearValues.checked=true}}this.updateInheritedPropertiesTemplates();break}}for(i=0;i<ipropTemplates.length;i++){obj_ta=BX(ipropTemplates[i].INPUT_ID);if(obj_ta){ipropTemplates[i].TEMPLATE=obj_ta.value;space=BX("space_"+ipropTemplates[i].ID);if(space){ipropTemplates[i].SPACE=space.value}}}setTimeout(function(){InheritedPropertiesTemplates.updateInheritedPropertiesValues()},1e3)};JCInheritedPropertiesTemplates.prototype.insertIntoInheritedPropertiesTemplate=function(e,t,i){var r=BX(i);r.focus();var n=r.value,s,o;if(typeof r.selectionStart!="undefined"&&typeof r.selectionEnd!="undefined"){s=r.selectionEnd;r.value=n.slice(0,r.selectionStart)+e+n.slice(s);r.selectionStart=r.selectionEnd=s+e.length}else if(typeof document.selection!="undefined"&&typeof document.selection.createRange!="undefined"){r.focus();o=document.selection.createRange();o.collapse(false);o.text=e;o.select()}this.updateInheritedPropertiesTemplates();BX.fireEvent(r,"change");r.focus()};JCInheritedPropertiesTemplates.prototype.onTabSelect=function(){this.updateInheritedPropertiesValues();this.updateInheritedPropertiesTemplates()};JCInheritedPropertiesTemplates.prototype.enableTextArea=function(e){var t=BX(e);var i=BX("ck_"+e);if(t&&t.readOnly){t.readOnly=false;if(i&&!i.checked){i.checked=true;this.updateInheritedPropertiesTemplates()}}};JCInheritedPropertiesTemplates.prototype.asciiOnly=function(e){if(e.value.length>0){if(e.value.length>1){e.value=e.value.charAt(0)}if(e.value.charCodeAt(0)>127){e.value=""}}};function JCPopupEditor(e,t){this.width=e;this.height=t;this.popup_editor_dialog=null;this.input=null}JCPopupEditor.prototype.openEditor=function(e,t){if(!this.popup_editor_dialog){this.popup_editor_dialog=new BX.CDialog({content:'<div width="100%" id="popup_editor_container"></div>',buttons:this.getButtons(),width:this.width,height:this.height});var i=BX("popup_editor_container");var r=BX("popup_editor_start");i.parentNode.appendChild(r);i.parentNode.removeChild(i);r.style.display="";LoadLHE_popup_editor_id()}this.popup_editor_dialog.Show();this.input=BX(e);popup_editor.SetEditorContent(this.input.value);popup_editor.SetFocus();this.startCharCounter()};JCPopupEditor.prototype.getButtons=function(){var e=this;var t=new BX.CWindowButton({title:BX.message("JS_CORE_WINDOW_SAVE"),id:"savebtn",name:"savebtn",className:BX.browser.IsIE()&&BX.browser.IsDoctype()&&!BX.browser.IsIE10()?"":"adm-btn-save",action:function(){e.stopCharCounter();this.parentWindow.Hide();popup_editor.SetView("html");e.input.value=popup_editor.GetEditorContent();e.input.onchange()}});var i=new BX.CWindowButton({title:BX.message("JS_CORE_WINDOW_CLOSE"),id:"closebtn",name:"closebtn",action:function(){e.stopCharCounter();this.parentWindow.Hide()}});return[t,i]};JCPopupEditor.prototype.startCharCounter=function(){if(!this.charCounterContainer){this.charCounterContainer=BX.create("SPAN");this.charCounterContainer.style.display="inline";this.popup_editor_dialog.PARTS.BUTTONS_CONTAINER.appendChild(this.charCounterContainer)}if(!this.charCounterTimer){this.charCounterTimer=setInterval(BX.delegate(function(){this.updateCharCounter()},this),500)}};JCPopupEditor.prototype.updateCharCounter=function(){var e=popup_editor.GetEditorContent().length;this.charCounterContainer.innerHTML=e;if(e>255&&!this.charCounterContainer.style.color)this.charCounterContainer.style.color="red";if(e<=255&&this.charCounterContainer.style.color)this.charCounterContainer.style.color=""};JCPopupEditor.prototype.stopCharCounter=function(){if(this.charCounterTimer)clearInterval(this.charCounterTimer);this.charCounterTimer=null};
//# sourceMappingURL=iblock_edit.map.js